package com.huoyun.announcement.service;

import java.util.List;

import com.huoyun.announcement.bean.Notice;
import com.huoyun.announcement.dao.NoticeDao;
import com.huoyun.announcement.dao.NoticeDaoImpl;
import com.huoyun.base.action.BaseAction;

public class NoticeServiceImpl extends BaseAction implements NoticeService {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private NoticeDao noticeDao = new NoticeDaoImpl();

	@Override
	public List<Notice> getByReceiverId(long id) {
		// TODO Auto-generated method stub
		return this.noticeDao.selectByReceiverId(id);
	}

	/**
	 * 
	 * @param notice
	 */
	public void postNotice(Notice notice) {

		this.noticeDao.insert(notice);
	}

	public NoticeDao getNoticeDao() {
		return noticeDao;
	}

	public void setNoticeDao(NoticeDao noticeDao) {
		this.noticeDao = noticeDao;
	}

}
